package com.data2wisdom.comm.utils;

public class EsDataTypeFromat {
	
	/**
	 * 将传入的类型转换为es类型
	 * @param originalType
	 * @return
	 */
	public static String parse(String originalType){
		String str = "text";
		switch (originalType) {
			case "Date":
				str = "date";
				break;
			case "Double":
				str = "double";
				break;
			case "Integer":
				str = "long";
				break;
			case "Boolean":
				str = "boolean";
			case "String":
				str = "text";	
			default:
				break;
		}
		
		return str;
		
	}

}
